home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{E384FCCE-B364-11D1-887B-006097819A51}#7.0#0"; "ActiveAssistant.ocx"
- Begin VB.Form ActAss_Ex3
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- Caption = "ActiveAssistant - Example 3"
- ClientHeight = 3495
- ClientLeft = 2715
- ClientTop = 4950
- ClientWidth = 6735
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3495
- ScaleWidth = 6735
- Begin ActiveAssistantControl.Assistant Assistant1
- Index = 0
- Left = 0
- Top = 840
- _ExtentX = 635
- _ExtentY = 635
- BeginProperty BalloonFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Caption = "Assistant1"
- FrameDelay = 100
- AssistantLeft = 13050
- AssistantTop = 345
- Reduced = -1 'True
- End
- Begin VB.CommandButton cmdSSend
- Caption = "End"
- Height = 495
- Left = 4680
- TabIndex = 3
- Top = 2880
- Width = 1575
- End
- Begin VB.CommandButton cmdssstop
- Caption = "Stop"
- Height = 495
- Left = 2640
- TabIndex = 2
- Top = 2880
- Width = 1575
- End
- Begin VB.CommandButton cmdSSPlay
- Caption = "Play"
- Height = 495
- Left = 480
- TabIndex = 1
- Top = 2880
- Width = 1575
- End
- Begin ActiveAssistantControl.Assistant Assistant1
- Index = 1
- Left = 0
- Top = 1320
- _ExtentX = 635
- _ExtentY = 635
- BeginProperty BalloonFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Caption = "Assistant1"
- FrameDelay = 100
- AssistantLeft = 13050
- AssistantTop = 345
- Reduced = -1 'True
- End
- Begin ActiveAssistantControl.Assistant Assistant1
- Index = 2
- Left = 0
- Top = 1680
- _ExtentX = 635
- _ExtentY = 635
- BeginProperty BalloonFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Caption = "Assistant1"
- FrameDelay = 100
- AssistantLeft = 13050
- AssistantTop = 345
- Reduced = -1 'True
- End
- Begin VB.Image cmdssassist
- Height = 2055
- Index = 2
- Left = 4680
- Picture = "ActiveAss_Ex3.frx":0000
- Stretch = -1 'True
- Top = 600
- Width = 1695
- End
- Begin VB.Image cmdssassist
- Height = 2040
- Index = 1
- Left = 2520
- Picture = "ActiveAss_Ex3.frx":2783
- Stretch = -1 'True
- Top = 600
- Width = 1725
- End
- Begin VB.Image cmdssassist
- Height = 2070
- Index = 0
- Left = 360
- Picture = "ActiveAss_Ex3.frx":4F47
- Stretch = -1 'True
- Top = 600
- Width = 1785
- End
- Begin VB.Label Label1
- Alignment = 2 'Center
- BackColor = &H0080FFFF&
- Caption = "Please select an Assisistant and click on Play"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 240
- TabIndex = 0
- Top = 120
- Width = 6255
- End
- Attribute VB_Name = "ActAss_Ex3"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Public AssIndex As Integer
- Private Sub cmdSSAssist_Click(Index As Integer)
- AssIndex = Index
- End Sub
- Private Sub cmdSSEnd_Click()
- End
- End Sub
- Private Sub cmdSSPlay_Click()
- Dim FrCount As Integer
- If Not Assistant1(AssIndex).IsAnimationPlaying Then
- Assistant1(AssIndex).StopAnimation
- FrCount = Assistant1(AssIndex).FrameCount
- Assistant1(AssIndex).AssistantMaxHeight = Assistant1(AssIndex).FrameHeight * Screen.TwipsPerPixelY
- Assistant1(AssIndex).AssistantMaxWidth = Assistant1(AssIndex).FrameWidth * Screen.TwipsPerPixelX
- Assistant1(AssIndex).PlayAnimation 1, FrCount, True
- End If
- Me.SetFocus
- End Sub
- Private Sub cmdSSStop_Click()
- Assistant1(AssIndex).StopAnimation
- ''Assistant1(AssIndex).Visible = False
- Assistant1(AssIndex).AssistantHide
- End Sub
- Private Sub Command1_Click()
- End Sub
- Private Sub Form_Load()
- Assistant1(0).LoadAnimationFile App.Path & "\dragon.bmp", 9
- Assistant1(1).LoadAnimationFile App.Path & "\worm.bmp", 20
- Assistant1(2).LoadAnimationFile App.Path & "\goldfish.bmp", 9
- End Sub
-